import { Entity, PrimaryGeneratedColumn, Column } from "typeorm"
export enum authority {
    ROOT = "0",
    NORMAL = "1",
    PASSERBY = "2",
}

@Entity()
export class Admin {
    @PrimaryGeneratedColumn()
    id: number

    @Column()
    username: string

    @Column()
    password: string

    @Column({
        type: "enum",
        enum: authority,
        default: authority.NORMAL,
    })
    authority: authority
}